﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using _MetalSlug.Form.PlayGame;

namespace _MetalSlug.Form.ScreenSystem.Message
{
    public class AddGameCoreMessage : MyMessage
    {
        public AddGameCoreMessage(object ContentOfMessage)
        {
            TypeOfMessage = TYPE.GAMECORE;
            Content = ContentOfMessage;
        }

        public override void Process(MyScreen SendWindow, MyScreen ReceiveWindow)
        {
            if(ReceiveWindow.TypeOfWindow == MyScreen.TYPE.PLAYGAME)
            {
                ((PlayGameScreen)ReceiveWindow).AddGameCore((int)Content);
            }
        }
    }
}
